import request from '@/utils/request'
// 销售统计  时间
export const cellinfo = (type, date1, date2) => request.get(`/api/order-service/report/amountCollect/${type}/${date1}/${date2}`)
export const cellinfo2 = (date1, date2) => request.get(`/api/order-service/report/regionCollect/${date1}/${date2}`)

//
export const hezuoshang = () => request.get('/api/vm-service/node/nodeCollect/')
// 获取本月至今当时工单汇总信息(人员统计头部信息)
export const topinfo = (start, end) => request.get(`/api/task-service/task/taskReportInfo/${start} 00:00:00/${end} 23:59:59`)
// 获取本月至今的销售额
export const orderCount = (start, end, partnerId) => request.get('/api/order-service/report/orderCount', {
  params: {
    start: start + ' 00:00:00',
    end: end + ' 23:59:59',
    partnerId
  }
})

export const orderAmount = (start, end, partnerId) => request.get('/api/order-service/report/orderAmount', {
  params: {
    start: start + ' 00:00:00',
    end: end + ' 23:59:59',
    partnerId
  }
})
// top10
export const top10 = (start, end) => request.get(`/api/order-service/report/skuTop/10/${start}/${end}`)
// 获取点位总数
export const point = () => request.get('/api/vm-service/node/count')
// 获取合作商总数
export const hznum = () => request.get('/api/user-service/partner/count')
